package com.developer.platform.infrastructure.error;

import com.veeker.core.enums.ErrorType;

/**
 * @author ：qiaoliang
 * @date ：2020-10-14
 */
public enum LoginErrorType implements ErrorType {
    LOGIN_DP_PHONE_ERROR("请输入正确的手机号！"),
    LOGIN_TYPE_ERROR("目前不支持此类登录方式！"),
    ACCOUNT_IS_STATUS_ERROR("用户帐户已被封禁！"),
    PASSWORD_ERROR("登录密码错误！"),
    ACCOUNT_IS_NULL_ERROR("用户名不存在！");

    private final int status;

    private final String message;

    LoginErrorType(String message) {
        this.message = message;
        this.status = 409;
    }

    LoginErrorType(int status, String message) {
        this.status = status;
        this.message = message;
    }

    @Override
    public int getStatus() {
        return status;
    }

    @Override
    public String getMessage() {
        return message;
    }

}
